<h2 class="title">设备调拨</h2>
<form action="index.php" method=get name=frm>
<table class="tb_term" width="100%">
<tr>
	<td  class="tr_td_width01 alignright">调拨单据编号</td>
	<td class="tr_td_width03"><input type="text" class="input_select_stand txt-normal"  name="allocation_no" value="{%$allocation_no%}" /></td>
	<td  class="tr_td_width01 alignright">设备调拨日期</td>
	<td>
		<input type="hidden" name="c" value="zy_mc_allocation">
		<input type=text class="input_date_select txt-normal" name="allocation_time" id="allocation_time" maxlength="12" value='{%$allocation_time|date_format:"%Y-%m-%d"%}' readonly>
		<script>
			Calendar.setup({
				inputField     :    "allocation_time",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
		<label class="label01">至</label>
		<input type=text class="input_date_select txt-normal" name="allocation_time_end" id="allocation_time_end" maxlength="12" value='{%$allocation_time_end|date_format:"%Y-%m-%d"%}' readonly>
		<script>
			Calendar.setup({
				inputField     :    "allocation_time_end",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
	</td>
</tr>
<tr>
	<td class="alignright">设备调拨出处</td>
	<td>
		<select name="allocation_from"  class="select_edit02 txt-normal" dataType="Require"  msg="" {% if $act eq 'edit' %}readonly{%/if%}>
			<option value="">-- 请选择 --</option>
			{%foreach from=$project_arr item=list%}
			<option value="{%$list%}" {%if $allocation_from==$list%}selected{%/if%}>{%$list%}</option>
			{%/foreach%}
		</select>
	</td>
	<td class=" alignright">设备调拨去向 </td>
	<td>
		<select name="allocation_to"  class="select_edit02 txt-normal" dataType="Require"  msg="" {% if $act eq 'edit' %}readonly{%/if%}>
			<option value="">-- 请选择 --</option>
			{%foreach from=$project_arr item=list%}
			<option value="{%$list%}" {%if $allocation_to==$list%}selected{%/if%}>{%$list%}</option>
			{%/foreach%}
		</select>
	</td>
</tr>
</table>
<p class="btn_right">
	<button type="submit" class="b-default" hidefocus="true"><span><em>查询</em></span></button>
	<button class="b-default" hidefocus="true" onclick="javascript:location.href='index.php?c=zy_mc_allocation&m=add';return false;"><span><em>添加</em></span></button>
</p>
</form>

<h2 class="title">结果显示</h2>
<table class="tb_list" width="100%">
<tr class="title">
	<td class="list_td_zw_10">调拨单据编号</td>
	<td class="list_td_zw_10">设备调拨出处</td>
	<td class="list_td_zw_10">设备调拨去向</td>
	<td class="list_date02">设备调拨日期</td>
	<!--
	<td>调补附件</td>
	<td>合同编号</td>-->
	<td class="list_td_zw_04">经办人员</td>
	<td>调拨备注</td>
	<td class="list_td_zw_opt02">操作</td>
</tr>
{%foreach from=$arr item=arr_item%}
<tr>
	<td class="alignleft" title="{%$arr_item.allocation_no%}">{%$arr_item.allocation_no%}</td>
	<td class="alignleft">{%$arr_item.allocation_from%}</td>
	<td class="alignleft">{%$arr_item.allocation_to%}</td>
	<td>{%$arr_item.allocation_time|date_format:"%Y-%m-%d"%}</td>
	<!--<td>{%$arr_item.file_path%}</td>
	<td>{%$arr_item.contract_no%}</td>-->
	<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
	<td class="alignleft" title="{%$arr_item.allocation_info%}">{%cut_str str=$arr_item.allocation_info sublen=8%}</td>
	<td>
		<a href='index.php?c=zy_mc_allocation&m=browse&allocation_id={%$arr_item.allocation_id%}' hidefocus="true">详细</a>&nbsp;
		<a href='index.php?c=zy_mc_allocation&m=edit&allocation_id={%$arr_item.allocation_id%}' hidefocus="true">修改</a>
	</td>
</tr>
{%foreachelse%}
<tr><td colspan="7">暂无内容</td></tr>
{%/foreach%}
</table>

{%if $arr_item%}
<div class="pagenation aligncenter">
	<div id="pager">{%$page_footer%}</div>
</div>
{%/if%}